package com.zdcp.swagger2.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * API文档生成 控制层
 * @author yweijian
 * @date 2019年9月4日
 * @version 1.0
 */
@Controller
@RequestMapping("/tool/swagger")
public class Swagger2Controller {

	@RequiresPermissions("tool:swagger:view")
	@GetMapping()
	public String swagger() {
		return "redirect:/swagger-ui.html";
	}
}
